package model;

/**
 * 
 * @author Patrick
 *
 */

public class Cinema 
{
	private String number;
	private String description;
	
	public Cinema(String number, String description)
	{
		this.number = number;
		this.description = description;
	}
	
	public String getNumber() 
	{
		return number;
	}
	
	public void setNumber(String number) 
	{
		this.number = number;
	}
	
	public String getDescription() 
	{
		return description;
	}
	
	public void setDescription(String description) 
	{
		this.description = description;
	}
	
	@Override
	public boolean equals(Object obj) {
		boolean result = true;
		try {
			Cinema otherCinema = (Cinema) obj;
			result = number.equals(otherCinema.getNumber());
		}
		catch(Exception e) {
			result = false;
		}
		
		return result;
	}
}
